﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="usrSubscribe.ascx.cs" Inherits="controls_usrSubscribe" %>
<asp:UpdatePanel ID="upnlSubscribe" runat="server">
<ContentTemplate>
    <div runat="server" id="divSubscribe" visible="true">
        <asp:TextBox ID="txtEmail" runat="server" MaxLength="250" class="txtFld" Text="<%$ Resources:UserMessage,EnterEmail%>"
            onclick='javascript: this.value = ""'></asp:TextBox>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" ControlToValidate="txtEmail"
            Display="Dynamic" CssClass="validationErrorControl" ErrorMessage="" ValidationGroup="subscriber"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="revEmail" runat="server" ControlToValidate="txtEmail"
            CssClass="validationErrorControl" ErrorMessage="" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
            ValidationGroup="subscriber"></asp:RegularExpressionValidator>
        <asp:Button ID="ibtSubscribe" OnClientClick="LoadValidationErrorCss();" ValidationGroup="subscriber"
            runat="server" CssClass="button_enews al_mid" OnClick="ibtSubscribe_Click"
            ToolTip="Subscribe" />
    </div>
    <div id="divThankYou" visible="false" runat="server">
        <asp:Label Font-Size="Smaller" Font-Bold="true" ForeColor="red" runat="server" Text="<%$ Resources:UserMessage,SubscribeExist%>"
            ID="lblExist"></asp:Label>
        <asp:Label Font-Size="Smaller" ForeColor="white" runat="server" Text="<%$ Resources:UserMessage,SubscribeThankyou%>"
            ID="lblThankYou"></asp:Label>
    </div>
</ContentTemplate>
</asp:UpdatePanel>